﻿using System.Web.Mvc;
using Micua.Core.Routing;

namespace Micua.Web.Areas.Admin
{
    public class AreaRegistration : System.Web.Mvc.AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Admin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Admin_default",
                "{area}.wedn.net",
                "{controller}/{action}",
                new { action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}
